<template>
	<view class="turntable">
	    <view class="record">
	      <view class="inner"></view>
	    </view>
	    <view class="overlay"></view>
	    <view class="arm-holder">
	      <view class="arm"></view>
	    </view>
	    <view class="dial"></view>
	  </view>
</template>

<script>
	export default {
		data() {
			return {
			}
		},
	};
</script>

<style>
page{
  background: #333642;
}

.turntable{
  position: relative;
  margin: auto;
  display: block;
  margin-top: 20%;
  margin-bottom: 8%;
  width: 310rpx;
  height:280rpx;
  background: #9CD8BD;
  border-radius: 5%;
  box-shadow: inset 0 0 10rpx rgba(255,255,255,0.7);
}

.record {
  position: absolute;
  left: 35rpx;
  top: 35rpx;
  width: 200rpx;
  height: 200rpx;
  background: black;
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  0% {
    transform: none;
  }
  
  100% {
    transform: rotate(360deg);
  }
}

.record::before {
  content: '';
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
  width: 180rpx;
  height: 180rpx;
  background: repeating-radial-gradient(black, black 5rpx, #1C1C1C 6rpx, #1C1C1C 7rpx);
  border-radius: 50%;
}

.overlay {
  content: '';
  left: 35rpx;
  top: 35rpx;
  position: absolute;
  width: 200rpx;
  height: 200rpx;
  background: linear-gradient(45deg, transparent, 40%, rgba(255,255,255,0.35), 60%, transparent);
  border-radius: 50%;
}


.inner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 55rpx;
  height: 55rpx;
  background: linear-gradient(white, white 50%, #F796A8 50%, #F796A8);
  border-radius: 50%;
}

.inner::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10rpx;
  height: 10rpx;
  background: black;
  border-radius: 50%;
}

.inner::after {
  content: 'One Day';
  width: 55rpx;
  text-align: center;
  font-family: sans-serif;
  font-size: 8rpx;
  position: absolute;
  left: 50%;
  top: 10rpx;
  transform: translateX(-50%);
}

.arm-holder {
  position: absolute;
  width: 40rpx;
  height: 40rpx;
  background: gray;
  border-radius: 50%;
  right: 20rpx;
  top: 40rpx;
}

.arm-holder::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30rpx;
  height: 30rpx;
  background: #939393;
  border-radius: 50%;
}

.arm {
  position: absolute;
  right: 13rpx;
  width: 60rpx;
  top: 10rpx;
  height: 110rpx;
  border: 10rpx solid #939393;
  transform: skew(-20deg, -20deg);
  transform-origin: top right;
  border-left-color: transparent;
  border-top-color: transparent;
  border-radius: 0 0 30% 0;
  animation: armTwitch 0.5s infinite;
  animation-direction: alternate-reverse;
}

@keyframes armTwitch {
  0% {
     transform: skew(-20deg, -20deg);
  }
  
  100% {
    transform: skew(-20deg, -20deg) rotate(1deg);
  }
}

.arm::before {
  content: '';
  position: absolute;
  width: 20rpx;
  height: 30rpx;
  background: gray;
  transform: skew(20deg, 20deg) rotate(75deg);
  top: 98rpx;
  left: -10rpx;
  border-radius: 20%;
  clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

.dial {
  position: absolute;
  bottom: 20rpx;
  right: 20rpx;
  width: 25rpx;
  height: 25rpx;
  background: #333642;
  border-radius: 50%;
}

.dial::before {
  content: '';
  left: 50%;
  transform: translateX(-50%);
  top: 2rpx;
  position: absolute;
  width: 2rpx;
  height: 5rpx;
  background: white;
  border-radius: 50%;
}

</style>
